package com.geektime.hello.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: DRevelation
 * @Date: 2021/5/6 13:34
 * 事件
 */
public class UserRegisterEvent extends ApplicationEvent {

    private String username;

    public UserRegisterEvent(Object source) {
        super(source);
    }

    public UserRegisterEvent(Object source, String username) {
        super(source);
        this.username = username;
    }

    public String getUsername() {
        return username;
    }
}
